package app.game.enums;

import java.util.List;

/**
 * @Description 定义方向向量
 * @Date 2022/4/17 20:36
 * @Created by LYP
 */
public enum Direction {

    UPRIGHT(1, 0, "竖直方向"),
    CROSS(0, 1, "水平方向"),
    LEFT_OBLIQUE(1, 1, "左斜方向"),
    RIGHT_OBLIQUE(1, -1, "右斜方向");

    private int x;
    private int y;
    private String name;

    Direction(int x, int y, String name) {
        this.x = x;
        this.y = y;
        this.name = name;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public String getName() {
        return name;
    }
}
